import json

with open(r'D:\YXT_Project\llama-factory-experiments\data\train_cf.json', 'r', encoding='utf-8') as f:
    try:
        data = json.load(f)
        print("JSON格式验证通过")
    except json.JSONDecodeError as e:
        print(f"JSON格式错误: {e}")